package com.bootdo.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.contract.dao.YumemberDao;
import com.bootdo.contract.domain.YumemberDO;
import com.bootdo.contract.service.YumemberService;



@Service
public class YumemberServiceImpl implements YumemberService {
	@Autowired
	private YumemberDao yumemberDao;
	
	@Override
	public YumemberDO get(Integer id){
		return yumemberDao.get(id);
	}
	
	@Override
	public List<YumemberDO> list(Map<String, Object> map){
		return yumemberDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return yumemberDao.count(map);
	}
	
	@Override
	public int save(YumemberDO yumember){
		return yumemberDao.save(yumember);
	}
	
	@Override
	public int update(YumemberDO yumember){
		return yumemberDao.update(yumember);
	}
	
	@Override
	public int remove(Integer id){
		return yumemberDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return yumemberDao.batchRemove(ids);
	}
	
}
